package com.shu.project.controller;

import com.shu.framework.result.Result;
import com.shu.framework.utils.StringUtils;
import com.shu.project.model.User;
import com.shu.project.service.IGoodsService;
import com.shu.project.service.IUserService;
import com.shu.project.vo.GoodsVo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/user")
public class UserController {
    private static final Logger log = LoggerFactory.getLogger(UserController.class);
    @RequestMapping("/info")
    @ResponseBody
    public Result<User> toList(Model model, User user){
        return Result.success(user);
    }

}
